Release 10.1A: OpenEdge Development:
Progress 4GL Reference


ETIME function

Returns the time (in milliseconds) elapsed since the OpenEdge session began or since ETIME (elapsed time) was last set to 0. To set ETIME to 0, pass it a positive logical value, such as YES or TRUE.

Syntax

ETIME [ ( logical ) ] 

logical

A logical value, such as YES or TRUE. The default value is NO.

Examples

This procedure displays the time that elapsed since you began your OpenEdge session:

r-etime.p
DISPLAY ETIME. 

This procedure sets ETIME to 0, runs a procedure called applhelp.p, and displays the elapsed time, which, in this case, equals the time required to execute applhelp.p:

r-etime2.p
DEFINE VARIABLE a AS INTEGER.

DO:
  a = ETIME(yes).
  RUN applhelp.p.
  DISPLAY ETIME.
END. 

Notes

See also

TIME function


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095